# 定义购物清单的各项数据
order_info = {
    "单号": "DH202301010001",
    "时间": "2023-01-01 08:56:15",
    "items": [
        {"名称": "金士顿U盘8G", "数量": 1, "单价": 40.00, "金额": 40.00},
        {"名称": "胜创16GTF卡", "数量": 1, "单价": 50.00, "金额": 50.00},
        {"名称": "读卡器", "数量": 1, "单价": 8.00, "金额": 8.00},
        {"名称": "网线2米", "数量": 1, "单价": 5.00, "金额": 5.00}
    ],
    "总数": 4,
    "总额": 103.00,
    "折后总额": 103.00,
    "实收": 103.00,
    "找零": 0.00,
    "收银": "管理员"
}

# 打印顶部装饰线
print("=" * 50)
# 打印单号和时间
print(f"单号：{order_info['单号']}")
print(f"时间：{order_info['时间']}")
print("=" * 50)

# 打印商品表头
print(f"{'名称':<15}{'数量':<5}{'单价':<8}{'金额':<8}")
# 打印每个商品的信息
for item in order_info['items']:
    print(f"{item['名称']:<15}{item['数量']:<5}{item['单价']:<8.2f}{item['金额']:<8.2f}")
print("=" * 50)

# 打印统计信息
print(f"总数：{order_info['总数']:<5}总额：{order_info['总额']:<8.2f}")
print(f"折后总额：{order_info['折后总额']:<8.2f}")
print(f"实收：{order_info['实收']:<8.2f}找零：{order_info['找零']:<8.2f}")
print(f"收银：{order_info['收银']}")
print("=" * 50)